package com.mark.mall.web.platform.service;

import com.mark.mall.common.resultBean.R;

import java.io.IOException;

public interface ElasticSearchService {
    /**
     * 创建索引
     * @param indexName
     * @return
     * @throws IOException
     */
    R<Boolean> createIndex(String indexName) throws IOException;

    /**
     * 同步数据
     * @return
     * @throws IOException
     */
    R<Boolean> bulkGoods() throws IOException;

}
